window.EcExtension?.ready?.(() => {
    if (window.ecodeSDK && location.hash.startsWith('#/main/portal/')) {
        window.EcExtension.Menus.register('前端用户中心/流程中心', () => {
            location.href = `/wui/index.html?#/main/workflow/listDoing?_key=${new Date().getTime()}`
            location.reload()
        })

        window.EcExtension.Menus.register('前端用户中心/知识中心', () => {
            location.href = `/wui/index.html?#/main/document/search?_key=${new Date().getTime()}`
            location.reload()
        })
    }
})

import '../后端应用中心'